package com.house.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * @author: GGP
 * @description: 订单VO
 * @time: 2023-04-16 11:16
 **/
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@ApiModel
public class BillVO {

	/**
	 * 订单 ：添加
	 * 		单个查询：通过用户id和房间id查询是否重复下单。、订单号查询
	 * 		多个查询：通过订单状态、	用户id查询、房间id查询
	 */

	/** id */
	@ApiModelProperty(value = "id",name = "id",example = "1",required = true)
	private Integer id;

	/** 订单号 */
	@ApiModelProperty(value = "订单号",name = "billNumber",required = true)
	private String billNumber;

	/** 用户id */
	@ApiModelProperty(value = "用户id",name = "userId",required = true)
	private Integer userId;

	/** 房源id */
	private Integer houseId;

	/** 地址 */
	private String address;

	/** 房间号 */
	private String roomNum;

	/** 评分 */
	private Integer score;

	/** 房间id */
	private Integer roomId;

	/** 价格 */
	private Integer price;

	/** 手机号 */
	private String phone;

	/** 姓名 */
	private String uname;

	/** 身份证号 */
	private String idCard;

	/** 入住日期 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date checkInTime;

	/** 离店日期 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date checkOutTime;

	/** 订单状态 （0:待预订 1:已预订 2:已入住 3:已退房）*/
	private Integer status;

	private String statusMsg;

	private String buttonMsg;

	/** 下单时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date billTime;
}
